package com.atguigu.mapper;

import com.atguigu.pojo.Employee;

import java.util.List;
import java.util.Map;

/**
 * @author Cheng-02
 * @version V1.0
 * @Package com.atguigu.mapper
 * @date 2024/4/25 下午3:15
 */
public interface EmployeeMapper1 {
    //根据id查询对象
    Employee queryById(Integer id);

    List<Employee> queryBySalary(Double salary);

    int insertEmployee(Employee employee);

    //根据员工姓名查询员工信息
    //使用注解param
    //  List<Employee> queryByNameAndSalary(@Param("a") String name,@Param("b")Double salary);
    //使用mybatis默认机制
    List<Employee> queryByNameAndSalary(String name, Double salary);
//mapper接口不允许重载
    int insertEmpMap(Map data);


}
